#ifndef OBSERVERWIDGET_H
#define OBSERVERWIDGET_H

#include <QDialog>
#include "observerbase.h"

class ObserverWidget : public QDialog, public ObserverBase
{
public:
    ObserverWidget(QWidget * parent = 0);

    virtual void updateValue(QPoint begin, QPoint end) override;

protected:
    void paintEvent(QPaintEvent *event) override;

private:
    QPoint mousePressPoint;
    QPoint mouseReleasePoint;
};

#endif // OBSERVERWIDGET_H
